﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace D2E.Shared.Logger
{
    public static class Logger
    {
        public static class Logger
        {
            public static object Locker = new object();

            public static void LogInfos(string message)
            {
                lock (Locker)
                {
                    Console.ForegroundColor = ConsoleColor.Green;
                    Console.Write("[Infos] ");
                    Console.ForegroundColor = ConsoleColor.White;
                    Console.Write(message + Environment.NewLine);
                }
            }

            public static void LogError(string message)
            {
                lock (Locker)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.Write("[Error] ");
                    Console.ForegroundColor = ConsoleColor.White;
                    Console.Write(message + Environment.NewLine);
                }
            }

            public static void LogDebug(string message)
            {
                lock (Locker)
                {
                    Console.ForegroundColor = ConsoleColor.Magenta;
                    Console.Write("[Debug] ");
                    Console.ForegroundColor = ConsoleColor.White;
                    Console.Write(message + Environment.NewLine);
                }
            }
        }
    }
}
